<admintpl file="header" />
<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('menu/index')}">后台菜单</a></li>
			<li><a href="{:U('menu/add')}">添加菜单</a></li>
			<if condition="APP_DEBUG">
			<li><a href="{:U('menu/spmy_import_menu')}">导入菜单</a></li>
			<li class="active"><a href="{:U('menu/lists')}">所有菜单</a></li>
			<li><a href="{:U('menu/spmy_export_menu')}">备份菜单</a></li>
			</if>
		</ul>
		<form class="form-horizontal J_ajaxForm" action="{:U('Menu/listorders')}" method="post">
			<div class="table_list">
				<table width="100%" class="table table-hover table-bordered">
					<thead>
						<tr>
							<td colspan="5">
								<button class="btn btn-primary btn-small btn_submit J_ajax_submit_btn" type="submit">排序</button>
								<a class="btn btn-primary btn-small" type="submit" href="{:u('menu/spmy_getactions')}">导入新菜单</a>
							</td>
						</tr>
						<tr>
							<th width="80">排序</th>
							<th width="100">ID</th>
							<th>菜单英文名称</th>
							<th width="40">状态</th>
							<th width="80">管理操作</th>
						</tr>
					</thead>
					<foreach name="menus" item="vo">
					<tr>
						<td><input name="listorders[{$vo.id}]" type="text" size="3" value="{$vo.listorder}" class="input input-order"></td>
						<td>{$vo.id}</td>
						<td>{$vo.name}:{$vo.app}/{$vo.model}/{$vo.action}</td>
						<td>
						<if condition="$vo['status'] eq 1"> 
						显示
						<else /> 
						隐藏
						</if>
						</td>
						<td>
							<a href="{:u('menu/edit',array('id'=>$vo['id']))}">修改</a> | 
							<a class="J_ajax_del" href="{:u('menu/delete',array('id'=>$vo['id']))}">删除</a>
						</td>
					</tr>
					</foreach>
					<tr>
						<td colspan="5">
							<button class="btn btn-primary btn-small btn_submit J_ajax_submit_btn" type="submit">排序</button>
						</td>
					</tr>
				</table>
			</div>
		</form>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>